import React, { Component } from 'react'
import { HashRouter as Router, Switch, Route } from "react-router-dom"
import CompileRoute from "./router/compile"
import routes from "./router/routes"
import Layout from "./layout"
import "antd/dist/antd.css"
export default function App(props) {
    return (
        <Router>
            {/* <Route component={(props) => <CompileRoute routes={routes} {...props} />} /> */}

            {/* <Switch>
                <Route path="/login" component="" />
                <Route path="/404" component={page404} />
                <Redirect to="/login" />
            </Switch> */}
            <Layout>
                <CompileRoute routes={routes} />
            </Layout>
        </Router>
    )
}